package principle.prototype.deepClone;

import java.io.Serializable;

/**
 * @author malguy-wang sir
 * @create ---
 */
public class DeepCloneableTarget implements Serializable,Cloneable {
    private static final long serialVersionUID = 1l;
    private String cloneName;
    private String cloneClass;
    public DeepCloneableTarget(String cloneClass,String cloneName){
        this.cloneClass = cloneClass;
        this.cloneName = cloneName;
    }

    //默认方法会克隆字符串，这里只有字符串属性，所以可以用默认的
    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
